import request from "@/utils/request";

export function getTransferAccountsBatches(transferAccountsBatchId) {
  return request({
    url: `/hr/api/v1/transferAccountsBatches/${transferAccountsBatchId}`,
    method: "GET"
  });
}

export function getCompanyUnits(params) {
  return request({
    // url: "/recruit2/api/v1/companyUnits/pageByCondition",
    url: "/hr/api/v1/childrenCompany/listAll/list",
    method: "GET",
    params
  });
}

export function postSaveAgainByBatchId(data) {
  return request({
    url: "/hr/api/v1/transferAccountsBatches/saveAgainByBatchId",
    method: "POST",
    data
  });
}

export function putUpdateBatch(data) {
  return request({
    url: `/hr/api/v1/transferAccountsDetails/updateBatch`,
    method: "PUT",
    data
  });
}
